"""djangoProject URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path

from django.contrib import admin
from app01.views import contract_year, account, contract_other, user, contract_old, contract_summary, budget,receive

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', account.login),
    path('logout/', account.logout),

    path('user/list/', user.user_list),
    path('user/edit/', user.user_edit),
    path('user/delete/', user.user_delete),
    path('user/password/', user.user_password),
    path('user/save/', user.user_save),
    path('user/fields/', user.user_select_fields),

    path('contract/year/list/', contract_year.contract_year_list),
    path('contract/year/fields/', contract_year.contract_year_fields),
    path('contract/year/list/export_excel/', contract_year.export_excel, name='export-excel'),

    path('contract/year/details/list/', contract_year.year_details_list),
    path('contract/year/details/fields/', contract_year.year_details_fields),
    path('contract/year/details/export_excel/', contract_year.export_excel_details, name='export-excel-details'),

    path('contract/other/list/', contract_other.contract_other_list),
    path('contract/other/fields/', contract_other.contract_other_fields),
    path('contract/other/list/export_excel/', contract_other.export_excel, name='export-excel-other'),

    path('contract/old/list/', contract_old.contract_old_list),
    path('contract/old/fields/', contract_old.contract_old_fields),
    path('contract/old/list/export_excel/', contract_old.export_excel_old, name='export-excel-old'),

    path('contract/summary/list/', contract_summary.contract_summary_list),
    path('contract/summary/details/list/', contract_summary.contract_summary_details_list),
    path('contract/summary/fields/', contract_summary.contract_summary_fields),
    path('contract/summary/details/fields/', contract_summary.contract_summary_details_fields),
    path('contract/summary/list/export_excel/', contract_summary.export_excel, name='export-excel-summary'),
    path('contract/summary/details/list/export_excel/', contract_summary.export_excel_details,
         name='export-excel-summary-details'),

    path('budget/list/', budget.budget_list),
    path('budget/list/export_excel/', budget.export_excel_budget, name='export_excel_budget'),

    path('receive/list/', receive.receive_list),
    path('receive/fields/', receive.receive_fields),
    path('receive/list/export_excel/', receive.export_excel, name='export-excel-receive'),
    path('receive/group/list/', receive.receive_group_list),
    path('receive/table/list/', receive.receive_table_list),
]
